package com.have.blog.base.dto;

import com.have.blog.base.validator.Messages;
import com.have.blog.base.validator.annotation.IntegerNotNull;
import com.have.blog.base.validator.group.GetList;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页信息
 * @param <T>
 */
@Data
public class PageInfo<T> implements Serializable{
    private static final long serialVersionUID = 4893280118017319089L;
    private String keyword;

    @IntegerNotNull(groups = {GetList.class}, message = Messages.PAGE_NOT_NULL)
    private Integer pageNum;

    @IntegerNotNull(groups = {GetList.class}, message = Messages.SIZE_NOT_NULL)
    private Integer pageSize;
}
